package ltd.hanamaki.review.dataStruct;

import java.util.ArrayList;

public class ListVoTest {
    public static void main(String[] args) {


        ArrayList<Student> list = new ArrayList<>();

        Student zs = new Student();
        zs.setName("zs");
        zs.setAge(12);
        zs.setId(1);


        Student ls = new Student();
        ls.setName("ls");
        ls.setAge(12);
        ls.setId(1);

        list.add(ls);
        list.add(zs);

        System.out.println(list);

        for (Student student : list) {
            String name = student.getName();
            System.out.println(name);
        }
    }
}
